#pragma once
#include "AdListForAllSlots.h"
#include "Lock.h"
class AdListCacheManager
{
public:
	AdListCacheManager();
	~AdListCacheManager(void);
	AdListForAllSlots* GetAdListForAllSlots();
	void RefreshAdListForAllSlotsCache(AdListForAllSlots* adListForAllSlots);

private:
	int GetProcessingCacheIndex();

private:
	bool m_bCacheRefreshed;
	int m_nCurrentDataAvailableCacheIndex;
	AdListForAllSlots* m_adListForAllSlotsCache[2];
	Lock* m_pLock;
};
